package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @version V1.0
 * @author: hanshitong
 * @date: 2019-08-08 10:03
 * @description:
 */
public interface RightDao {

    Page<Permission> findPage(String queryString);

    void add(Permission permission);

    Permission findById(Integer id);

    void edit(Permission permission);

    void delete(Integer id);

    @Select("select * from t_permission")
    List<Permission> findAll();
}